package com.skd.mall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.skd.common.exception.NoStockExecption;
import com.skd.common.utils.PageUtils;
import com.skd.mall.order.dto.SeckillOrderDto;
import com.skd.mall.order.entity.OrderEntity;
import com.skd.mall.order.vo.OrderConfirmVo;
import com.skd.mall.order.vo.OrderResponseVO;
import com.skd.mall.order.vo.OrderSubmitVO;
import com.skd.mall.order.vo.PayVo;

import java.util.Map;

/**
 * 订单
 *
 * @author skadi
 * @email 2328158977@qq.com
 * @date 2024-08-07 19:49:08
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder();

    OrderResponseVO submitOrder(OrderSubmitVO vo) throws NoStockExecption;

    PayVo getorderPay(String orderSn);

    void handleOrderComplete(String orderSn);

    void quickCreateOrder(SeckillOrderDto seckillOrderDto);
}

